package com.song.uaa.core.config;

import java.util.ArrayList;
import java.util.List;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(ignoreUnknownFields = false, prefix = "song")
public class SongProperties {
	
	private final Security security = new Security();
	
	
	public Security getSecurity() {
		return security;
	}

	public static class Security {
		
		private final OAuth2 oauth2 = new OAuth2();
		
		public OAuth2 getOauth2() {
			return oauth2;
		}

		public static class OAuth2 {
			
			private final List<String> audience = new ArrayList<>();

			public List<String> getAudience() {
				return audience;
			}
			
		}
	}
	
}
